package com.fqcar.fqdf.entity;

import java.util.Map;

public class ResponseEntity {

    public static final int SERVER_NO_EXCEPTION_CODE = 200;
    /**
     * token验证失败
     */
    public static final int TOKEN_FAIL = 1003;


    public int code;
    public String desc;
    public Map modelData;

    public boolean isServerError = true;

    public ResponseEntity() {

    }

    public ResponseEntity(int code, String desc, boolean isServerError, Map modelData) {
        this.code = code;
        this.desc = desc;
        this.isServerError = isServerError;
        this.modelData = modelData;
    }

    @Override
    public String toString() {
        return "ResponseEntity [code=" + code
                + ", description=" + desc + ", modelData=" + modelData
                + "]";
    }
}